package Adapter

type ISocket interface {
	GetVoltage() float32
}

type AmericanSocket struct {
	ISocket
}

type ChineseSocket struct {
	ISocket
}

func (socket *AmericanSocket) GetVoltage() float32 {
	return 110
}
func (socket *ChineseSocket) GetVoltage() float32 {
	return 220
}
